home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 14688 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.0 KB  |  40 lines

  1. Path: news.sinaps.ru!newsserv
  2. From: "Dmitry Y. Pugachev" <ivl@npn-price.pskov.su>
  3. Newsgroups: comp.lang.c++
  4. Subject: Preprocessor derectives is insufficient for me
  5. Date: 1 Apr 1996 21:13:35 +0400
  6. Organization: N-P-N
  7. Sender: newsserv@news.sinaps.ru
  8. Distribution: world
  9. Message-ID: <ABY08OnW53@npn-price.pskov.su>
  10. Reply-To: ivl@npn-price.pskov.su
  11. NNTP-Posting-Host: sinaps.pskov.su
  12. X-Return-Path: npnp!npn-price.pskov.su!ivl
  13.  
  14. Hello all!
  15.  
  16. Just look at this code
  17.  
  18. #define DECLARE_CLASS(first_class,second_class,name_class)     \
  19. class name_class : virtual public first_class , virtual public second_class     \
  20. {       \
  21. public: \
  22.         name_class();   \
  23.         ~name_class();  \
  24. public: \
  25.         virtual base* operator&(classA&) \
  26.         virtual base* operator&(classB&) \
  27.  
  28.                 . . .
  29.  
  30.         virtual base* operators&(classN&) \
  31. };
  32.  
  33. I have to filter some operations I don't need in specific name_class.
  34. But a compiler don't allow to use #if in another #define statement :(
  35.  
  36. May be there is a way to solve my problem ?
  37.  
  38.  
  39.  
  40.